<template>
  <div>
    <material_header></material_header>
    <local-header style="padding: 0.8rem;"></local-header>
    <material_list :categorys="this.category" :categoryType="this.categoryType"></material_list>
  </div>
</template>

<script>

  import material_header from '@/components/material/material_header'
  import LocalHeader from '@/components/local/LocalHeader'
  import material_list from '@/components/material/material_list'
  import {getCateGoryList} from '@/api/commodity/shop_product.js'

  export default {
    name: "buildingMaterial_index",
    data(){
      return{
        category:[],
        categoryType: 1
      }
    },

    created() {
      this.getList();
    },

    components: {
      material_header,LocalHeader,material_list
    },

    methods: {
      // 查询家居建材类别列表
      getList(){
        getCateGoryList("1").then((res) => {
          this.category = res.data.data;
        });
      },
    },
  }
</script>

<style scoped>

</style>
